package cn.csg.iotplatform.module.system.controller.admin.project.vo;

import cn.csg.iotplatform.framework.common.constants.DictType;
import cn.csg.iotplatform.module.common.annotations.DictField;
import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.csg.iotplatform.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.csg.iotplatform.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 项目信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ProjectPageReqVO extends PageParam {

    @Schema(description = "记录id，多个逗号隔开")
    private String[] ids;

    @Schema(description = "项目编号")
    private String projectNo;

    @Schema(description = "项目名称", example = "芋艿")
    private String projectName;

    @Schema(description = "建设单位编号")
    private String unitCode;

    @Schema(description = "建设单位名称", example = "赵六")
    private String unitName;

    @Schema(description = "建设负责人")
    private String unitUser;

    @Schema(description = "建设负责人电话")
    private String unitTel;

    @Schema(description = "承建单位编号")
    private String constructionCode;

    @Schema(description = "承建单位名称", example = "李四")
    private String constructionName;

    @Schema(description = "承建单位负责人")
    private String constructionUser;

    @Schema(description = "承建单位负责人电话")
    private String constructionTel;

    @Schema(description = "数据来源")
    @DictField(dictType = DictType.PROJECT_DATA_SOURCE)
    private Integer dataSource;

    @Schema(description = "启用", example = "1")
    @DictField(dictType = DictType.CM_ENABLE)
    private Integer enablingStatus;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "网关设备数量")
    private Integer gatewayDeviceNum;

    @Schema(description = "子终端数量")
    private Integer subDeviceNum;

    @Schema(description = "普通设备数量")
    private Integer commonDeviceNum;

    @Schema(description = "描述", example = "你猜")
    private String description;

}